﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MainMaster.Master" Inherits="System.Web.Mvc.ViewPage<CoVanHocTapData.Entities.MonHocDangKy>" %>

<%@ Import Namespace= "CoVanHocTapProject.Extends" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Đăng ký kế hoạch học tập
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<br />
<label style="font-weight:bold; font-size:15px; font-family:Arial">Các môn đã đăng ký</label>
<hr />

<% if (Model.MonHocSVDangKy == null || Model.MonHocSVDangKy.Count==0)
   {%>
    <label style="font-size:13px">Bạn chưa đăng ký môn học nào</label>
    <br />
<%}
   else
   {%>
    <%int j = 1; %>
        <table cellpadding=0 cellspacing=0 width=90% style="font-size:14px; ">
            <tr style="background-color:#507CD1; color:White; height:25px; " >
                 <th style="width:150px; text-align:center">Mã môn học</th>                                            
                <th style="width:450px;text-align:left">Tên môn học</th>
                <th style="white-space:150px;text-align:center">Số TC</th>
                <th style="width:200px"></th>
            </tr>
            <%foreach (var item in Model.MonHocSVDangKy)
              {%>
                <%if (j % 2 != 0)
                  {%>
                <tr style="background-color:#DDDDDD">
                <%}
                  else
                  { %>
                  <tr>
                <%} %>
                    <td style="text-align:center" ><%= item.MonHocID %></td>
                    <td style="text-align:left" ><%=item.TenMonHoc %></td>
                    <td style="text-align:center" ><%= item.SoDVHocTap %></td>
                    <td><%= Html.ActionImage("HuyMonDangKy", "KeHoachHocTap", new { Id = item.MonHocID }, "../../images/DeleteRed.png", "HuyMon")%></td>
                </tr>
                <% j++; %>
            <%} %>
        </table>
<%} %>
<br />

<br />
<label style="font-weight:bold; font-size:15px; font-family:Arial">Chuyên ngành</label> 
<label style="font-weight:bold; font-size:15px; font-family:Arial"><%=CoVanHocTapProject.Infrastructure.Publics.sinhVienDangNhap.Lop.NganhDaoTao.TenNganh %></label>
<hr />
<br />
<%int i = 1;%>
<table cellpadding=0 cellspacing=0 width=98% style="font-size:14px; ">
    <tr style="background-color:#5D7B9D; color:White; height:25px; " >
         <th style="width:150px; text-align:center">Mã môn học</th>                                            
        <th style="width:450px;text-align:left">Tên môn học</th>
        <th style="white-space:150px;text-align:center">Số TC</th>
        <th style="width:200px"></th>
    </tr>
    <%foreach (var item in Model.MonHocCTDT)
      {%>
        <%if (i % 2 != 0)
          {%>
             <tr style="background-color:#D1DDF1; height:18px">
             <%} else{%>
                <tr style="height:18px">
             <%} %>
                <td style="text-align:center" ><%= item.MonHocID %></td>
                <td style="text-align:left" ><%=item.TenMonHoc %></td>
                <td style="text-align:center" ><%= item.SoDVHocTap %></td>
                <td style="height:18px"><%= Html.ActionImage("DangKy", "KeHoachHocTap", new { Id = item.MonHocID }, "../../images/RegistVI.png", "DangKy")%></td>
            </tr>
            <% i++;%>
    <%} %>
   
</table>
<br /><br />

    
</asp:Content>
